package tt.lab.designparttern.strategy;

public class Test {

	public static void main(String[] args) {
		Planner planner = new Planner();
		
		Plan planA = new PlanA();
		Plan planB = new PlanB();
		
		if((int)(Math.random()*10)>5){
			planner.setPlan(planA);
		} else {
			planner.setPlan(planB);
		}
		planner.executePlan();

	}

}
